package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 实例审批流程
 * </p>
 *
 * @author hpiggy
 * @since 2025-01-01
 */
@TableName("audit_flow_detail")
@ApiModel(value = "AuditFlowDetail对象", description = "实例审批流程")
@Data
public class AuditFlowDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long flowId;

    private Long sourseId;

    @ApiModelProperty("审核步骤")
    private Integer stepNum;

    private Integer checkNum;

    @ApiModelProperty("流程名称")
    private String name;

    private Long schoolId;

    @ApiModelProperty("1审批，2抄送")
    private Integer type;

    @ApiModelProperty("0未审核，1审核通过，2拒绝")
    private Integer status;

    @TableField(exist = false)
    private String statusStr;

    @ApiModelProperty("是否到达当前流程")
    private Integer isArrive;

    @ApiModelProperty("到达时间")
    private LocalDateTime arriveDateTime;

    private LocalDateTime operateDateTime;

    @ApiModelProperty("通过或者拒绝理由【现在暂时不用到这个字段】")
    private String reason;

    private Long checkId;

    @TableField(exist = false)
    private String checkIds;

    @ApiModelProperty("申请表的版本id")
    private Integer sourseVersionNum;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
